// Definition of the MPG program
//
//
application "MPG:VtHick" called "MPG"
// with options { "nofolders" }

soup "MPG:VtHick" called "MPG" of "MPG:VtHick"

overview "MPG" called "MPG" of "MPG:VtHick" queries "date" contains
	{
	column "Date" width 60 is date
	column "Vehicle" width 80 is vehicle
	column "Odometer" width 60 is odometer
	}

class "MPG:VtHick.Misc" called "Service/Alarm" of "MPG:VtHick" contains
	{
	label:string called "Label"
	date: datetime called "Date"
	vehicle: string called "Vehicle"
	paymentMethod: string called "Payment"
	odometer: real called "Odometer"
	cost: real called "Cost"
	location:string called "Location"
	cateogry:string called "Category"
	description:string called "Notes"
	}

class "MPG:VtHick.Fuel" called "Fuel" of "MPG:VtHick" contains
	{
	label:string called "Label"
	date: datetime called "Date"
	vehicle: string called "Vehicle"
	paymentMethod: string called "Payment"
	odometer: real called "Odometer"
	cost: real called "Cost"
	location:string called "Location"
	gallons:number called "Gallons"
	octane:string called "Octane"
	fullTank:boolean called "Full Tank"
	description:string called "Notes"
	}

class "MPG:VtHick.Trip" called "Trip" of "MPG:VtHick" contains
	{
	label:string called "Label"
	date: datetime called "Date"
	vehicle: string called "Vehicle"
	paymentMethod: string called "Payment"
	odometer:real called "Odometer"
	cost: real called "Cost"
	triplocation:string called "Location"
	tripPoint:string called "Trip Point" class "tripClasses" with
options { "displayifempty"  }
	purpose:string called "Purpose"
	description:string called "Notes"
	}


field class "tripClasses" |End Trip| is "End Trip" ""
field class "tripClasses" |Start Trip| is "Start Trip" ""
field class "tripClasses" |Resume Trip| is "Resume Trip" ""
field class "tripClasses" |Pause Trip| is "Pause Trip" ""
field class "tripClasses" |Distance Marker| is "Distance Marker" ""
